﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace EMS.system.Entityies.MasterData.UnitMeasureModel
{
    /// <summary>
    /// 计量单位
    /// </summary>
    public class UnitMeasure : Entity<int>
    {
        /// <summary>
        /// 单位编码
        /// </summary>
        public string UnitMeasureCode { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitMeasureName { get; set; }
        /// <summary>
        /// 主单位
        /// </summary>
        public string? MainUnit { get; set; }

        /// <summary>
        /// 是否是主计量单位
        /// </summary>
        public bool IsPrimaryUnit { get; set; }

        /// <summary>
        /// 与单位转换比例
        /// </summary>
        public decimal? ConversionScale { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool State { get; set; }
    }
}
